import java.util.ArrayList;
import java.util.List;

/**
 * Created by larry on 2017/2/21.
 */
public class ListTest {


    public static void main(String[] args){

        List<String> ls = new ArrayList<>();
        ls.add("abc");
        ls.add("efj");
        ls.add("def");

        String str = ls.stream().filter(l->l.equals("a3")).findFirst().orElse(null);

        System.out.print("str="+str);









    }

}
